Introduction
Devices and sensors can be connected to Cumulocity IoT. See Interfacing devices and Device integration using MQTT.
Sensors result in Measurement
or Event
objects in Cumulocity IoT, and devices can receive Operation
objects created within the Cumulocity IoT platform. All of these objects (Measurement
, Event
, Operation
) will be associated with a single device in the Cumulocity IoT platform. A device may have multiple types of measurement associated with it, and the types of measurements each device supports may be the same as other devices or different to other devices. Once devices are connected to Cumulocity IoT, information about these devices is stored in the Cumulocity IoT inventory. These are visible in the Device management application, which can also be used to view Measurement
, Event
or Operation
objects associated with that device. See Device management for more information.
Using the Streaming Analytics application, you can add your own logic to your IoT solution for immediate processing of incoming data from devices or other data sources. These user-defined operations can, for example, alert applications of new incoming data, create new operations based on the received data (such as sending an alarm when a threshold for a sensor is exceeded), or trigger operations on devices.
Typical real-time analytics use cases include:
- Remote control: Turn a device off if its temperature rises over 40 degrees.
- Validation: Discard negative meter readings or meter readings that are lower than the previous.
- Derived data: Calculate the volume of sales transactions per vending machine per day.
- Aggregation: Sum up the sales of vending machines for a customer per day.
- Notifications: Send me an email if there is a power outage in one of my machines.
- Compression: Store location updates of all cars only once every five minutes (but still send real-time data for the car that I am looking at to the user interface).
The Cumulocity IoT platform includes an Apama correlator component, which is managed by the Cumulocity IoT platform (this is not manually started or stopped) and is preconfigured to communicate to Cumulocity IoT. This correlator hosts the Analytics Builder runtime, and also executes any operation logic added using EPL apps. The operation logic is based on Apama’s Event Processing Language (Apama EPL).
The Streaming Analytics application can be used with both Cumulocity IoT Core (cloud) and Cumulocity IoT Edge (local installation).